import { IMessageBase } from "../../Framework/MQ/IMessageBase";
import { MessageManager } from "../../Framework/MQ/MessageManager";
import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
import { SPublicMiniPlayer } from "./SPublicMiniPlayer";
type int = number;
//class SHandselFlowerBack
    
    export  class SHandselFlowerBack extends IMessageBase
    {
        constructor(arg1: Boolean=false)
        {
            
            super();if (arg1) 
            {
                MessageManager.instance().regist(this);
            }
            return;
        }

        public /* override */ getType(): int
        {
            return this._type;
        }

        public /* override */ clone(): IMessageBase
        {
            return new SHandselFlowerBack();
        }

        public /* override */ __write(arg1: SerializeStream): void
        {
            arg1.writeInt(this.charm);
            arg1.writeInt(this.intimate);
            arg1.writeInt(this.exp);
            arg1.writeInt(this.code);
            this.toPlayer.__write(arg1);
            return;
        }

        public /* override */ __read(arg1: SerializeStream): void
        {
            this.charm = arg1.readInt();
            this.intimate = arg1.readInt();
            this.exp = arg1.readInt();
            this.code = arg1.readInt();
            this.toPlayer = new SPublicMiniPlayer();
            this.toPlayer.__read(arg1);
            return;
        }

        public /* const */_type: int=722;

        public /* var */charm: int;

        public /* var */intimate: int;

        public /* var */exp: int;

        public /* var */code: int;

        public /* var */toPlayer: SPublicMiniPlayer;

        public static /* var */_regist: SHandselFlowerBack;
    }

            SHandselFlowerBack._regist = new SHandselFlowerBack(true);
        